<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>协同办公系统 - 登录/注册</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #0A1628;
            min-height: 100vh;
            overflow: hidden;
        }
        .auth-container {
            min-height: 100vh;
            display: flex;
            position: relative;
            z-index: 1;
        }
        .auth-form {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .design-notes {
            background: rgba(31, 41, 55, 0.95);
            backdrop-filter: blur(10px);
            color: white;
            width: 320px;
            padding: 2rem;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }
        .form-input {
            @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent bg-white bg-opacity-80 backdrop-blur-sm;
        }
        .auth-btn {
            @apply w-full py-3 px-4 bg-gradient-to-r from-blue-500 to-indigo-600 text-white rounded-lg hover:from-blue-600 hover:to-indigo-700 transition-all duration-300 transform hover:scale-[1.02] focus:scale-[0.98];
        }
        .switch-btn {
            @apply text-blue-500 hover:text-blue-600 cursor-pointer;
        }
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            background: linear-gradient(45deg, #0A1628, #1A2B4B);
        }
        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
        }
        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            pointer-events: none;
        }
        .collaboration-lines {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .line {
            position: absolute;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            height: 1px;
            width: 100%;
            animation: moveLine 8s linear infinite;
        }
        @keyframes moveLine {
            0% {
                transform: translateY(-100%) rotate(45deg);
            }
            100% {
                transform: translateY(100%) rotate(45deg);
            }
        }
        .brand-logo {
            position: absolute;
            top: 2rem;
            left: 2rem;
            z-index: 2;
        }
        .tech-circle {
            position: absolute;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 50%;
            animation: rotate 20s linear infinite;
        }
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .floating-cards {
            position: absolute;
            width: 500px;
            height: 500px;
            left: -100px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 0;
        }
        .floating-card {
            position: absolute;
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(5px);
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
            padding: 20px;
            animation: float 10s ease-in-out infinite;
        }
    </style>
</head>
<body>
    <!-- 动态背景 -->
    <div class="animated-bg">
        <div class="particles" id="particles"></div>
        <div class="collaboration-lines">
            <div class="line" style="top: 20%"></div>
            <div class="line" style="top: 40%"></div>
            <div class="line" style="top: 60%"></div>
            <div class="line" style="top: 80%"></div>
        </div>
        <div class="tech-circle" style="width: 300px; height: 300px; right: 10%; top: 20%"></div>
        <div class="tech-circle" style="width: 200px; height: 200px; left: 15%; bottom: 10%"></div>
    </div>

    <!-- 品牌Logo -->
    <div class="brand-logo">
        <h1 class="text-3xl font-bold text-white">CoWork<span class="text-blue-500">Pro</span></h1>
    </div>

    <!-- 浮动卡片效果 -->
    <div class="floating-cards">
        <div class="floating-card" style="width: 200px; height: 120px; transform: rotate(-15deg); top: 20%; left: 10%;">
            <div class="text-white text-opacity-50">实时协作</div>
        </div>
        <div class="floating-card" style="width: 180px; height: 100px; transform: rotate(10deg); top: 50%; left: 30%;">
            <div class="text-white text-opacity-50">智能编辑</div>
        </div>
        <div class="floating-card" style="width: 160px; height: 90px; transform: rotate(-5deg); top: 70%; left: 20%;">
            <div class="text-white text-opacity-50">数据安全</div>
        </div>
    </div>

    <div class="auth-container">
        <!-- 左侧登录区域 -->
        <div class="flex-1 flex items-center justify-center p-8">
            <div class="auth-form w-full max-w-md p-8">
                <!-- 登录表单 -->
                <div id="login-form">
                    <div class="text-center mb-8">
                        <h1 class="text-3xl font-bold bg-gradient-to-r from-blue-500 to-indigo-600 bg-clip-text text-transparent">欢迎回来</h1>
                        <p class="text-gray-600 mt-2">登录您的协同办公账号</p>
                    </div>

                    <div class="space-y-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">邮箱</label>
                            <input type="email" class="form-input" placeholder="请输入邮箱">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">密码</label>
                            <input type="password" class="form-input" placeholder="请输入密码">
                        </div>
                        <div class="flex items-center justify-between">
                            <label class="flex items-center">
                                <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-500">
                                <span class="ml-2 text-sm text-gray-600">记住我</span>
                            </label>
                            <a href="#" class="text-sm text-blue-500 hover:text-blue-600">忘记密码？</a>
                        </div>
                        <button class="auth-btn" onclick="location.href='prototype.html'">
                            <span class="flex items-center justify-center">
                                <span>登录</span>
                                <svg class="w-5 h-5 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"/>
                                </svg>
                            </span>
                        </button>
                        <div class="text-center mt-4">
                            <span class="text-gray-600">还没有账号？</span>
                            <a class="switch-btn ml-1" onclick="switchForm('register')">立即注册</a>
                        </div>
                    </div>
                </div>

                <!-- 注册表单 -->
                <div id="register-form" class="hidden">
                    <div class="text-center mb-8">
                        <h1 class="text-3xl font-bold bg-gradient-to-r from-blue-500 to-indigo-600 bg-clip-text text-transparent">创建账号</h1>
                        <p class="text-gray-600 mt-2">加入协同办公平台</p>
                    </div>

                    <div class="space-y-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">用户名</label>
                            <input type="text" class="form-input" placeholder="请输入用户名">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">邮箱</label>
                            <input type="email" class="form-input" placeholder="请输入邮箱">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">密码</label>
                            <input type="password" class="form-input" placeholder="请输入密码">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">确认密码</label>
                            <input type="password" class="form-input" placeholder="请再次输入密码">
                        </div>
                        <button class="auth-btn">
                            <span class="flex items-center justify-center">
                                <span>注册</span>
                                <svg class="w-5 h-5 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"/>
                                </svg>
                            </span>
                        </button>
                        <div class="text-center mt-4">
                            <span class="text-gray-600">已有账号？</span>
                            <a class="switch-btn ml-1" onclick="switchForm('login')">返回登录</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 切换表单
        function switchForm(type) {
            const loginForm = document.getElementById('login-form');
            const registerForm = document.getElementById('register-form');
            
            if (type === 'register') {
                loginForm.classList.add('hidden');
                registerForm.classList.remove('hidden');
            } else {
                loginForm.classList.remove('hidden');
                registerForm.classList.add('hidden');
            }
        }

        // 创建粒子效果
        function createParticles() {
            const container = document.getElementById('particles');
            for (let i = 0; i < 50; i++) {
                const particle = document.createElement('div');
                particle.className = 'particle';
                const size = Math.random() * 4 + 1;
                particle.style.width = size + 'px';
                particle.style.height = size + 'px';
                particle.style.left = Math.random() * 100 + '%';
                particle.style.top = Math.random() * 100 + '%';
                particle.style.opacity = Math.random() * 0.5;
                particle.style.animation = `float ${Math.random() * 10 + 5}s linear infinite`;
                container.appendChild(particle);
            }
        }

        // 页面加载完成后初始化粒子效果
        window.addEventListener('load', createParticles);
    </script>
</body>
</html> 